package com.uphone.kingmall.activity.personal;

import android.widget.ImageView;
import android.widget.TextView;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.china.zhuoyue.R;
import com.uphone.kingmall.adapter.TrandactionRecordAdapter;
import com.uphone.kingmall.base.BaseActivity;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * <pre>
 *     author : 王雨
 *     e-mail : sunzengyan@outlook.com
 *     time   : 2018/07/31
 *     desc   :交易记录
 *     version: 1.0
 * </pre>
 */
public class TransactionRecordActivity extends BaseActivity {
    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.rv_record_list)
    RecyclerView rvRecordList;
    @BindView(R.id.tv_empty)
    TextView tvEmpty;


    @Override
    public int getLayoutContentId() {
        return R.layout.kingmall_activity_transaction_record;
    }

    @Override
    public void initView() {
        setStatusBar();
    }

    @Override
    public void initData() {
        List list=new ArrayList();
        for(int i=0;i<4;i++){
            list.add("");
        }
        rvRecordList.setLayoutManager(new LinearLayoutManager(this));
        TrandactionRecordAdapter adapter=new TrandactionRecordAdapter(R.layout.kingmall_item_trans_record,list);
        rvRecordList.setAdapter(adapter);
    }

    @OnClick(R.id.iv_back)
    public void onViewClicked() {
        finish();
    }
}
